projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44ffd6a
)
Fix widening some columns in tabulated-list-widen-current-column
author
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 25 Jan 2022 12:58:30 +0000
(13:58 +0100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 25 Jan 2022 12:58:30 +0000
(13:58 +0100)
* lisp/emacs-lisp/tabulated-list.el
(tabulated-list-widen-current-column): Don't bug out on list-based
columns (bug#53498).
lisp/emacs-lisp/tabulated-list.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/tabulated-list.el
b/lisp/emacs-lisp/tabulated-list.el
index a242ac1899da13b7aaefce90a7d3f7edf0c53445..2defef81073ff2b3d8c6d14e8b834cf8174ea987 100644
(file)
--- a/
lisp/emacs-lisp/tabulated-list.el
+++ b/
lisp/emacs-lisp/tabulated-list.el
@@
-745,7
+745,10
@@
Interactively, N is the prefix numeric argument, and defaults to
(max (setq col-width
(cadr (aref tabulated-list-format
col-nb)))
- (string-width (aref entry col-nb)))
+ (let ((desc (aref entry col-nb)))
+ (string-width (if (stringp desc)
+ desc
+ (car desc)))))
(or (plist-get (nthcdr 3 (aref tabulated-list-format
col-nb))
:pad-right)